<template>
  <div>
    <van-search
      v-model="searchVal"
      shape="round"
      placeholder="请输入搜索关键词"
      disabled
      @click="searchClick"
    />
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  computed: {
    ...mapState({
      isShowshadow: (state) => state.Showshadow.isShowshadow,
    }),
  },
  data() {
    return {
      searchVal: "",
    };
  },
  methods: {
    ...mapMutations({
      chanisShowshadow: "Showshadow/chanisShowshadow",
    }),
    searchClick() {
      this.$router.push("/home/searchpopup");
      this.chanisShowshadow(true);
    },
  },
};
</script>
 
<style lang = "less" scoped>
</style>